package edu.sctu.practice.class02.shilaihong.text.text04;

/**
 * Created by admin on 2015/10/12.
 */
public class Number {
    private int n1;
    private int n2;

    public Number(int n1, int n2) {
        this.n1 = n1;
        this.n2 = n2;
    }

    public double addition() {
        return (n2 + n1);
    }

    public double subtration() {
        return (n1 - n2);
    }

    public double multiplication() {
        return (n1 * n2);
    }

    public double division() {
        return (n1 % n2);
    }
}
